<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="<?php echo __CONTENT__;?>/Admin/css/admin.css" rel="stylesheet"
	type="text/css">

<script type="text/javascript" src="<?php echo __CONTENT__;?>/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo __CONTENT__;?>/js/jquery.validate.js"></script>
<script type="text/javascript" src="<?php echo __CONTENT__;?>/js/artDialog.js?skin=black"></script>
<script type="text/javascript" src="<?php echo __CONTENT__;?>/js/WdatePicker.js"></script>
</head>
<body>
<script type="text/javascript">
$(function(){
	$(".delete").click(function(){
		var url=$(this).attr("href");
		art.dialog({
			id:"delete",
			title:"确认删除",
			content:"您确认要删除此记录吗?",
			lock:true,
			ok:function(){
				location.href=url;
			},
			icon:"question",
			cancel:true
		});
		return false;
	});
	$("#checkAll").click(function(){
		if($(this).attr("checked")){
			$(":checkbox").attr("checked",true);
		}else{
			$(":checkbox").attr("checked",false);
		}
	});
	$("#deleteAll").click(function(){
		if($("input[name='id[]']:checked").size()!=0){
			$("form").submit();
		}else{
			art.dialog({
				id:"delete",
				title:"确认删除",
				content:"请勾选需要删除的数据",
				lock:true,
				ok:true,
				icon:"face-sad"
			});
		}
		return false;
	});
});
function show_error_message(title,msg){
	art.dialog({
		id:"id",
		title:title,
		content:msg,
		lock:true,
		ok:true,
		icon:'face-sad'
	});
}
</script>
<div id="container" class="so_main">
		<div class="page_tit"><?php echo $title;?></div>
		<!-- START TOOLBAR -->
		<div class="Toolbar_inbox">
			<div class="page right"></div>
			<a href="<?php echo U('save');?>" class="btn_a"><span>添加发型师</span></a>
		</div>
		<!-- END TOOLBAR -->
		<!-- START LIST -->
		<div class="list" id="list">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tbody>
					<tr>
						<th style="width: 30px;"><input type="checkbox" id="checkAll">
						</th>
						<th class="line_l">发型师</th>
						<th class="line_l">排序</th>
						<th class="line_l">操作</th>
					</tr>
					<?php foreach($list as $v){?>
					<tr>

						<td><input type="checkbox" value="<?php echo $v['id'];?>" name="id[]"></td>
						<td><?php echo $v['name'];?></td>
						<td><?php echo $v['sort'];?></td>
						<td><a
							href="<?php echo U('update?id='.$v['id']);?>">修改</a>
							-
							<a href="<?php echo U('delete?id='.$v['id']);?>" class="delete">删除</a></td>
					</tr>
					<?php }?>
				</tbody>
			</table>
			<div class="Toolbar_inbox">
			<div class="page right">
			<?php echo $page;?>
			</div>
		</div>
		</div>
		<!-- END LIST -->

	</div>
	<!-- END CONFIG_FORM -->
</div>

</html>